Intraoperative leak testing